package com.sheep.juc;

/**
 * @author wangze
 * @date 2020-10-17 10:15.
 **/
public class TSleepTest {

	public static void main(String[] args) {
		Thread thread = new Thread(() -> {
			System.out.println("线程启动了");
			try {
				Thread.sleep(10000000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println("线程结束了");
		});
		thread.setName("线程1111111111");
		thread.start();
	}
}
